package com.dong.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

public class  MyApplicationListener implements ApplicationListener<ApplicationEvent> {
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("MyApplicationListener   onApplicationEvent ");
        System.out.println("收到事件: "+event);
    }
}
